package com.hopu.v1.controller.admin.system;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hopu.v1.dto.RoleOrganizationDto;
import com.hopu.v1.pojo.common.R;
import com.hopu.v1.service.admin.system.impl.RoleOrganizationServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/roleOrganization")
public class RoleOrganizationController {

    @Autowired
    private RoleOrganizationServiceImpl roleOrganizationService;

    @GetMapping("selectRoleOrganization")
    public R selectRoleOrganization(Page<RoleOrganizationDto> page,String roleName){
        return R.ok(this.roleOrganizationService.selectRoleOrganization(page,roleName));
    }
}
